import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { Icon, Lazyload, Dialog } from 'vant'
import api from './api' // 导入api接口
import './common/validate'
import filters from './filter'
import VueFilter from 'vue-filter'
import VueQuagga from 'vue-quaggajs'

Vue.use(Dialog)
Vue.use(VueQuagga)
Vue.prototype.$api = api // 将api挂载到vue的原型上
Vue.use(Icon)
Vue.use(Lazyload, {
  lazyComponent: true
})
Vue.use(filters)
Vue.use(VueFilter)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
